.jsx-vs-html {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: white;
}

.jsx-vs-html h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.comparison-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.comparison-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-section h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 0.5rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.html-example,
.jsx-example {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.html-example h3,
.jsx-example h3 {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.html-example {
  border-left: 4px solid #ff6b6b;
}

.jsx-example {
  border-left: 4px solid #4caf50;
}

.html-example h3::before {
  content: "🔴 ";
}

.jsx-example h3::before {
  content: "🟢 ";
}

pre {
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.4;
}

code {
  font-family: 'Courier New', monospace;
  color: #e0e0e0;
}

/* 演示部分 */
.demo-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.demo-section h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.demo-content {
  display: flex;
  justify-content: center;
}

.demo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 500px;
  width: 100%;
}

.demo-card h3 {
  color: #ffd700;
  margin-bottom: 1rem;
  text-align: center;
}

.user-info {
  margin-bottom: 1.5rem;
}

.user-info p {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.demo-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.demo-actions button {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.demo-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.conditional-content {
  background: rgba(76, 175, 80, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
  margin-top: 1rem;
}

.conditional-content p {
  margin: 0.5rem 0;
  color: #4caf50;
}

/* 总结部分 */
.summary-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

.summary-section h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.summary-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item h3 {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.summary-item ul {
  list-style: none;
  padding: 0;
}

.summary-item li {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 0.9rem;
}

.summary-item strong {
  color: #ffd700;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .jsx-vs-html {
    padding: 1rem;
  }
  
  .jsx-vs-html h1 {
    font-size: 2rem;
  }
  
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .demo-actions {
    flex-direction: column;
  }
  
  .demo-actions button {
    width: 100%;
  }
} 